from time import sleep
from selenium import webdriver
from selenium.webdriver.common.by import By

options = webdriver.FirefoxOptions()
options.set_preference("browser.download.folderList", 2)
options.set_preference("browser.download.dir", "D:")
options.set_preference("browser.download.manager.showWhenStarting", False)
options.set_preference("browser.helperApps.neverAsk.saveToDisk", "application/zip")
driver = webdriver.Firefox(options=options)
driver.get("https://npm.taobao.org/mirrors/geckodriver/v0.20.0/")
sleep(3)
driver.find_element(By.CSS_SELECTOR, "body > table:nth-child(2) > tbody:nth-child(1) > tr:nth-child(9) > td:nth-child(2) > a:nth-child(1)").click()



